<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let arr = [2, 3, 55, 3, 3, 2, 6]
        // 1.arr.pop()
        //2.arr.shift()
        arr.splice(1, 1)//第一个一的意思是从第一个元素开始减，第二个是减去几个元素

        console.log(arr);

    </script>
</body>

</html>